package org.tgcloud.group.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.ProjectMediaRequirements;
import org.tgcloud.group.web.controller.dto.project.mediaRequirementsDTO.MediaRequirementsManageDTO;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2025-09-02-下午2:40
 * @Description: ${description}
 */
public interface ProjectMediaRequirementsMapper extends BaseMapper<ProjectMediaRequirements> {
    int deleteByPrimaryKey(Integer id);

    int insert(ProjectMediaRequirements record);

    int insertSelective(ProjectMediaRequirements record);

    ProjectMediaRequirements selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProjectMediaRequirements record);

    int updateByPrimaryKey(ProjectMediaRequirements record);

    List<MediaRequirementsManageDTO> selectManageListByProjectId(@Param("projectId") Integer projectId, @Param("status") Short status);

    int updateStatusById(@Param("id") Integer id, @Param("status") short status);

    List<MediaRequirementsManageDTO> selectUsedListByProjectId(@Param("projectId") Integer projectId);

    List<Integer> selectTestByProjectId();

}